﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QLPKWeb.Models.FormBean.NhanVienModel.NhanVienForm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/NhanVien/ThemMoiNhanVien.js") %>"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function() {
            $("#NCCMND").datepicker({ dateFormat: 'dd/mm/yy' });
            $("#NS").datepicker({ dateFormat: 'dd/mm/yy' });
            $("#NVlam").datepicker({ dateFormat: 'dd/mm/yy' });
        });
    </script>
    <script language="javascript" type="text/javascript">
      
            $(document).ready(function () {
                selectMenu("NhanVien-DanhSachNhanVien");
                $("#NhanVien-DanhSachNhanVien").parent().attr("class", "active");
            });
      
      
    </script>
    <div class="box">
        <form id="form" action="#" class="formBox">
      
                    <ul class="breadcrumb">
                        <li><a href="#"><i class="icon-home"></i></a><span class="divider">&nbsp;</span></li>
                        <li><a href="#">Thêm Mới Nhân Viên</a><span class="divider">&nbsp;</span></li>
                        <li><a href="#">Page</a><span class="divider-last">&nbsp;</span></li>
                    </ul>
     
     <div>
         
          <table class="table_input" style="margin-left: -200px;">
              <input type="hidden" id="Id" name="Id" value="<%= Model.Id %>" />
                <tr>
                    <td>
                        <div id="Message" style="font-size: 12px; color: Blue; font-weight: bold">
                            <%=Model.Message%>
                        </div>
                        <div id="MessageError" style="font-size: 12px; color: Red; font-weight: bold">
                            <%=Model.MessageError%>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="width: 600px;" class="table table-striped table-bordered dataTable" >
                            <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Số thẻ <span class="red">(*)</span>
                                </td>
                                <td>
                                    <input type="text" id="SoThe" name="SoThe" value="<%=Model.SoThe %>"style="width: 50%" />
                                       <div class="red" id="SoTheMessage">
                                    </div>
                                </td>
                            </tr>
                                  <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Họ <span class="red">(*)</span>
                                </td>
                                <td >
                                    <input type="text" id="Ho" name="Ho"  value="<%=Model.Ho %>" style="width: 90%" />
                                    <div class="red" id="HoMessage">
                                    </div>
                                </td>
                                  <td nowrap="nowrap" class="lab">
                                    Tên <span class="red">(*)</span>
                                </td>
                                <td  >
                                    <input type="text" id="Ten" name="Ten" value="<%=Model.Ten %>" style="width: 89%" />
                                    <div class="red" id="TenMessage">
                                    </div>
                                </td>
                            </tr>
                      
                           
                             <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Loại chức vụ<span class="red">(*)</span>
                                </td>
                                <td colspan="3">
                                    <%=Html.DropDownList("IdChucVu", Model.CbChucVu, "---- Chọn chức vụ ----", new { Style = " width:98.5%" })%>
                                    <div class="red" id="IdChucVuMessage">
                                    </div>
                             </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Số CMND<span class="red">(*)</span>
                                </td>
                                <td colspan="3">
                                    <input type="text" id="SoCMND" name="SoCMND" value="<%=Model.SoCMND %>" style="width: 95.5%" />
                                    <div class="red" id="SoCMNDMessage">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Ngày cấp CMND<span class="red">(*)</span>
                                </td>
                                <td>
                                    <input type="text" id="NCCMND" name="NCCMND" value="<%=Model.NCCMND %>"
                                        style="width: 90%" />
                                    <div class="red" id="NgayCapCMNDVayMessage">
                                    </div>
                                </td>
                                <td nowrap="nowrap" class="style1" class="lab">
                                    Nơi cấp CMND<span class="red">(*)</span>
                                </td>
                                <td>
                                    <input type="text" id="NoiCapCMND" name="NoiCapCMND" value="<%=Model.NoiCapCMND %>" style="width: 89%" />
                                       <div class="red" id="NoiCapCMNDMessage">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" valign="top" style="width: 110px;" class="lab">
                                    Địa chỉ
                                </td>
                                <td colspan="3">
                                    <%=Html.TextArea("DiaChi", Model.DiaChi, new { Style = "width:95.5%" })%>
                                </td>
                            </tr>
           
                            <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Ngày vào làm<span class="red">(*)</span>
                                </td>
                                <td>
                                    <input type="text" id="NVlam" name="NVlam" value="<%=Model.NVlam%>"style="width: 90%" />
                                    <div class="red" id="NgayVaoLamMessage">
                                    </div>
                                </td>
                                <td nowrap="nowrap" class="style1" class="lab">
                                   Năm sinh<span class="red">(*)</span>
                                </td>
                                <td>
                                    <input type="text" id="NS" name="NS" value="<%=Model.NS %>" style="width: 89%" />
                                    <div class="red" id="NamSinhMessage">
                                    </div>
                                </td>
                            </tr>
                            <%--    <tr>
                                <td nowrap="nowrap" style="width: 110px;">
                                    Nơi gửi<span class="red">(*)</span>
                                </td>
                                <td colspan="3">
                                    <input type="text" id="NoiGui" name="NoiGui" value="<%=Model.NoiGui %>" style="width: 95.5%" />
                                    <div class="red" id="NoiGuiMessage"></div>
                                </td>
                            </tr>--%>
                            <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Nơi sinh <span class="red">(*)</span>
                                </td>
                                <td colspan="3">
                                    <input type="text" id="NoiSinh" name="NoiSinh" value="<%=Model.NoiSinh %>"
                                  
                                        style="width: 95.5%" />
                                    <div class="red" id="NoiSinhVayMessage">
                                    </div>
                                </td>
                            </tr>
                               <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Dân tộc<span class="red">(*)</span>
                                </td>
                                <td colspan="3">
                                    <%=Html.DropDownList("IdDanToc", Model.CbDanToc, "---- Chọn dân tộc ----", new { Style = " width:98.5%" })%>
                                    <div class="red" id="Div1">
                                    </div>
                             </td>
                             <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Tỉnh<span class="red">(*)</span>
                                </td>
                                <td colspan="3">
                                    <%=Html.DropDownList("IdTinh", Model.CbTinh, "---- Chọn tỉnh ----", new { Style = " width:98.5%" })%>
                                    <div class="red" id="Div2">
                                    </div>
                              </td>
                            </tr>
                             <tr>
                                <td nowrap="nowrap" style="width: 110px;" class="lab">
                                    Tôn giáo<span class="red">(*)</span>
                                </td>
                                <td colspan="3" >
                                    <%=Html.DropDownList("IdTonGiao", Model.CbTonGiao, "---- Chọn tôn giáo ----", new { Style = " width:98.5%" })%>
                                    <div class="red" id="Div3">
                                    </div>
                              </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td colspan="3" style="margin-top: 5px" class="btn-submit">
                                    <input type="button" id="Button2" name="btnSave" value="Lưu" onclick="javascript:DoSave();" />
                                    <div style="display: inline">
                                    </div>
                                    <%-- <input type="button" id="btnDelete" name="btnDelete" value="Xóa" onclick="javascript:DoDelete();" />--%>
                                    <input type="button" id="btnbtBack"  class="button"name="btnBack" value="Trở về" onclick="javascript:DoBack();" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </div>
        </form>
    </div>
</asp:Content>


